import { defineComponent } from 'vue';
import { ElImage, ElTooltip } from 'element-plus';
 
export default defineComponent({
  name: 'HTip',
  props:{
    content:{
      type:String,
      default:""
    },
    size:{
      type:Number,
      default:15
    }
  },
  setup(props: any) {
    const {VITE_STATIC_URL} = import.meta.env;
    return () => (
      <ElTooltip
        effect="light"
        placement="top"
        content={props.content}
        raw-content
      >
        <ElImage style={{width:props.size+"px"}} src={`${VITE_STATIC_URL}/tcpl/question.png`}></ElImage>
      </ElTooltip>
    );
  }
});
